package com.yoda.youdianda.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class PageDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @JsonProperty("count")
    private long total;

    @JsonProperty("totalPages")
    private long pages;

    @JsonProperty("pageSize")
    private long size;

    @JsonProperty("currentPage")
    private long current;

    @JsonProperty("data")
    private List records;
}
